#include "omoperationmanager.h"
#include "omoperationbase.h"
#include "omoperationcontext.h"
#include "scalefactor/omoperation_setscalefactor.h"

OMOperationManager::OMOperationManager()
{
    OMOperationBase::setOperationManager(this);
    OMOperationBase::setOperationContext(new OMOperationContext);
}

OMOperationManager::~OMOperationManager()
{
}

void OMOperationManager::setMainWindow(MainWindow* mainWindow)
{
    OMOperationBase::operationContext()->setMainWindow(mainWindow);
}

void OMOperationManager::setRenderer(OMRenderer* renderer)
{
    OMOperationBase::operationContext()->setRenderer(renderer);
}

void OMOperationManager::initOperations(void)
{
    // scale factor
    OMOperation_SetScaleFactor* scaleFactorOperation = new OMOperation_SetScaleFactor;
    scaleFactorOperation->initialize();
}
